package com.zms.maze;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class Scorpion extends Character implements Serializable {

	private static final long serialVersionUID = 1L;

	public int weight=0;
	public Scorpion(int x,int y) {
		super(x,y);
	}
	public void writeObject(ObjectOutputStream out) throws IOException {		
		out.writeInt(x);
		out.writeInt(y);
		out.writeInt(weight);
	}
	public static Scorpion readObject(ObjectInputStream in) throws IOException,ClassNotFoundException {
		Scorpion scorpion=new Scorpion(in.readInt(),in.readInt());
		scorpion.weight=in.readInt();
		return scorpion;
	}

}
